package org.jeecg.modules.dlxj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.dlxj.entity.DlxjCircuitry;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.dlxj.entity.DlxjPole;
import org.jeecg.modules.dlxj.vo.CirNameVo;
import org.jeecg.modules.dlxj.vo.PoleCircuitryVo;

/**
 * @Description: 线路表
 * @Author: lzl
 * @Date:   2022-07-20
 * @Version: V1.0
 */
public interface DlxjCircuitryMapper extends BaseMapper<DlxjCircuitry> {


    /**
     * 通过线路id，获得线路名称
     * @param cirIds
     * @return
     */
    List<CirNameVo> getCirNameByIds(@Param("cirIds")List<String> cirIds);

    /**
     * 通过线路id，删除杆塔，线路关联表的相关信息
     * @param circuitryCode
     */
    void deleteCirAndPole(String circuitryCode);

    /**
     * 线路下拉
     * @return
     */
    List<DlxjCircuitry> selectCircuitry();

    Integer getPosition(String poleCode);

    void insertPoles(String id,String poleCode);





}
